import printJS from 'print-js';

export const printHtml = (id) => {
  printJS({
    printable: id, // 'printFrom', // 标签元素id
    type: 'html',
    header: '', // '表单',
    targetStyles: ['*'],
    style: '@page {margin:0 10mm};', // 可选-打印时去掉眉页眉尾
    ignoreElements: [], // ['no-print']
    properties: null,
  });
};
